The CxAcsEditor object contains the following methods:
The Connect method connects to a ACS.
Connect(DomainSiteService As String)
| Parameter | Required | Description |
|---|---|---|
|
DomainSiteService |
Yes |
The [Domain]Site.Service to which to connect. A domain is optional. The service must be a valid ACS. |
Example
The following example creates and connects the CxAcsEditor object.
|
Sub Dim AcsEditor Set AcsEditor = CreateObject("CxEditors.CxAcsEditor") AcsEditor.Connect("[5410]CYGDEMO.ACS") End Sub |
The Copy method launches a Copy ACS Application property sheet initialized with the information in the specified record.
Copy(QueueKey As String) As Integer
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to copy. |
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a Copy ACS Application property sheet for record "0000000048."
|
Sub Dim iRet iRet = AcsEditor.Copy("0000000048")
MsgBox iRet End Sub |
The Delete method launches a Delete ACS Application property sheet initialized with the information in the specified record.
Delete(QueueKey As String) As Integer
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to delete. |
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a Delete ACS Application property sheet for record "0000000048."
|
Sub Dim iRet iRet = AcsEditor.Delete("0000000048")
MsgBox iRet End Sub |
The Disconnect method disconnects from the connected ACS.
Disconnect()
Example
The following example disconnects the AcsEditor object.
|
Sub AcsEditor.Disconnect End Sub |
The Edit method launches a property sheet initialized with the information in the specified record.
Edit(QueueKey As String) As Integer
| Parameter | Required | Description |
|---|---|---|
|
QueueKey |
Yes |
The database queue key of the record to edit. |
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a property sheet for record "0000000048."
|
Sub Dim iRet iRet = AcsEditor.Edit("0000000048")
MsgBox iRet End Sub |
The New method launches a New ACS Application property sheet.
New() As Integer
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
|
1 |
OK button was pressed. | |
| 2 | Cancel button was pressed. |
Example
The following example launches a New ACS Application property sheet.
|
Sub Dim iRet iRet= AcsEditor.New MsgBox iRet End Sub |
The ShowAppsList method launches an Applications List dialog box from which the user can add, delete, edit, and copy ACS applications.
ShowAppsList() As Integer
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
| 2 | Close button was pressed. |
Example
The following example launches an Applications List dialog box.
|
Sub Dim iRet iRet = AcsEditor.ShowAppsList
MsgBox iRet End Sub |
The ShowGroupsList method launches a Groups List dialog box from which the user can add, delete, edit, and copy ACS groups.
ShowGroupsList() As Integer
This method returns one of the following values:
| -1 or 0 | An error occurred. | |
| 2 | Close button was pressed. |
Example
The following example launches a Groups List dialog box.
|
Sub Dim iRet iRet = AcsEditor.ShowGroupsList
MsgBox iRet End Sub |